if ENABLE_PROTOCOL_IRC

ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
BUILD_DIR = ../../../build/
ASSEMBLY_NAME=Galaxium.Protocol.Irc
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).dll

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN = galaxium-protocol-irc.pc.in

COMPILE_TARGET = library

REFERENCES =  \
	-pkg:anculus-core \
	-r:../../../build/Galaxium.Client.dll \
	-r:../../../build/Galaxium.Core.dll \
	-r:../../../build/Galaxium.Gui.dll \
	-r:../../../build/Galaxium.Protocol.dll \
	-r:System \
	-r:System.Xml

RESOURCES =  \
	Galaxium.Protocol.Irc.addin \
	irc_servers.xml 
EXTRAS = 
DATA_FILES = 

FILES =  \
	AssemblyInfo.cs \
	Dcc/DccChatConnection.cs \
	Dcc/DccConnectionInfo.cs \
	Dcc/DccFileConnection.cs \
	Enums/ChannelModeFlags.cs \
	Enums/UserModeFlags.cs \
	EventArgs/ChannelContactActionEventArgs.cs \
	EventArgs/ChannelContactEventArgs.cs \
	EventArgs/ChannelContactMessageEventArgs.cs \
	EventArgs/ChannelContactModeEventArgs.cs \
	EventArgs/ChannelEventArgs.cs \
	EventArgs/ChannelModeEventArgs.cs \
	EventArgs/ServerEventArgs.cs \
	EventArgs/UserModeEventArgs.cs \
	IrcConnection.cs \
	IrcConnectionInfo.cs \
	IrcConstants.cs \
	IrcConversation.cs \
	IrcConversationManager.cs \
	IrcFileTransfer.cs \
	IrcPrecence.cs \
	IrcProtocol.cs \
	IrcProtocolHelper.cs \
	IrcSession.cs \
	MessageBuffer.cs \
	Objects/IrcAccount.cs \
	Objects/IrcChannel.cs \
	Objects/IrcContact.cs \
	Objects/IrcContactIdentifier.cs \
	Objects/IrcGroup.cs \
	Objects/IrcMessage.cs \
	Objects/IrcNetworkInfo.cs \
	Objects/IrcServerInfo.cs \
	Objects/IrcStoredChannel.cs \
	Objects/IrcStoredContact.cs \
	RemoteServerSettings.cs

GENERATED_FILES = AssemblyInfo.cs

if ENABLE_PROTOCOL_IRC
all: $(ASSEMBLY)
else
all:
endif

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

include $(top_srcdir)/Makefile.include

else
all:
endif
